import httpInstance from "@/utils/http";

export function getDetailAPI(id: String) {
	return httpInstance({
		url: "/good",
		params: {
			id: id,
		}
	});
}

export function getHotGoodsAPI({
	id,
	type,
	limit = 3
}: {
	id: string,
	type: string,
	limit?: number
}) {
	return httpInstance({
		url: "/goods/hot",
		params: {
			id: id,
			type: type,
			limit: limit,
		}
	});
}